load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "envutil",
    srcs = ["env.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/util/envutil",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/util/humanizeutil",
        "//pkg/util/syncutil",
        "@com_github_cockroachdb_redact//:redact",
    ],
)

go_test(
    name = "envutil_test",
    size = "small",
    srcs = ["env_test.go"],
    embed = [":envutil"],
    deps = ["@com_github_stretchr_testify//require"],
)
